package com.zheng.damo1.电商系统;

public class Commodity {
    private String id;
    private String name;
    private Double money;
    private Integer number;

    public Commodity() {
    }

    public Commodity(String id, String name, Double money, Integer number) {
        this.id = id;
        this.name = name;
        this.money = money;
        this.number = number;
    }

    @Override
    public String toString() {
        return
                "id='" + id + '\'' +
                ", name='" + name + '\'' +
                ", money='" + money + '\'' +
                ", number=" + number ;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Double getMoney() {
        return money;
    }

    public void setMoney(Double money) {
        this.money = money;
    }

    public Integer getNumber() {
        return number;
    }

    public void setNumber(Integer number) {
        this.number = number;
    }
}
